package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.purchase.PurchaseReturnOrder;

public class PurchaseReturnOrderEvent extends DomainEvent<PurchaseReturnOrder> {

  public static final String PURCHASERETURNORDER_DESTORY = "purchaseReturnOrderEventDestory";

  public static PurchaseReturnOrderEvent buildPurchaseReturnOrderDestory(Object[] values){
    PurchaseReturnOrderEvent purchaseReturnOrderEvent = new PurchaseReturnOrderEvent();
    purchaseReturnOrderEvent.eventName = PURCHASERETURNORDER_DESTORY;
    purchaseReturnOrderEvent.values = values;
    return purchaseReturnOrderEvent;
  }

  //采购退货单取消
  public static final String PURCHASE_RETURN_ORDER_CANCEL = "purchaseReturnOrderCancelEvent";
  public static PurchaseReturnOrderEvent buildPurchaseReturnOrderCancel(Object[] values){
    PurchaseReturnOrderEvent purchaseReturnOrderEvent = new PurchaseReturnOrderEvent();
    purchaseReturnOrderEvent.eventName = PURCHASE_RETURN_ORDER_CANCEL;
    purchaseReturnOrderEvent.values = values;
    return purchaseReturnOrderEvent;
  }

  //采购退货单创建
  public static final String PURCHASE_RETURN_ORDER_CREATED = "purchaseReturnOrderCreatedEvent";
  public static PurchaseReturnOrderEvent buildPurchaseReturnOrderCreated(Object[] values){
    PurchaseReturnOrderEvent purchaseReturnOrderEvent = new PurchaseReturnOrderEvent();
    purchaseReturnOrderEvent.eventName = PURCHASE_RETURN_ORDER_CREATED;
    purchaseReturnOrderEvent.values = values;
    return purchaseReturnOrderEvent;
  }

  //采购退货单修改
  public static final String PURCHASE_RETURN_ORDER_UPDATED = "purchaseReturnOrderUpdatedEvent";
  public static PurchaseReturnOrderEvent buildPurchaseReturnOrderUpdated(Object[] values){
    PurchaseReturnOrderEvent purchaseReturnOrderEvent = new PurchaseReturnOrderEvent();
    purchaseReturnOrderEvent.eventName = PURCHASE_RETURN_ORDER_UPDATED;
    purchaseReturnOrderEvent.values = values;
    return purchaseReturnOrderEvent;
  }

  //采购退货单确认发货
  public static final String PURCHASE_RETURN_ORDER_DELIVER_GOODS = "purchaseReturnOrderDeliverGoodsEvent";
  public static PurchaseReturnOrderEvent buildPurchaseReturnOrderDeliverGoods(Object[] values){
    PurchaseReturnOrderEvent purchaseReturnOrderEvent = new PurchaseReturnOrderEvent();
    purchaseReturnOrderEvent.eventName = PURCHASE_RETURN_ORDER_DELIVER_GOODS;
    purchaseReturnOrderEvent.values = values;
    return purchaseReturnOrderEvent;
  }

  public static final String PURCHASERETURNORDER_STATE_DESTORY = "purchaseReturnOrderStateEventDestory";

  public static PurchaseReturnOrderEvent buildPurchaseReturnOrderStateDestory(Object[] values){
    PurchaseReturnOrderEvent purchaseReturnOrderEvent = new PurchaseReturnOrderEvent();
    purchaseReturnOrderEvent.eventName = PURCHASERETURNORDER_STATE_DESTORY;
    purchaseReturnOrderEvent.values = values;
    return purchaseReturnOrderEvent;
  }

  public static final String PURCHASERETURNORDER_REMOVE_STATE_DESTORY = "purchaseReturnOrderRemoveStateEventDestory";

  public static PurchaseReturnOrderEvent buildPurchaseReturnOrderRemoveStateDestory(Object[] values){
    PurchaseReturnOrderEvent purchaseReturnOrderEvent = new PurchaseReturnOrderEvent();
    purchaseReturnOrderEvent.eventName = PURCHASERETURNORDER_REMOVE_STATE_DESTORY;
    purchaseReturnOrderEvent.values = values;
    return purchaseReturnOrderEvent;
  }
}
